package com.caifu.pojo;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author GZ
 * @since 2020-11-05
 */
public class YlFloor extends Model<YlFloor> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID（楼层表）
     */
    @TableId("FLOOR_NO")
    private Integer floorNo;

    /**
     * 楼层名称（唯一验证，字段唯一）
     */
    @TableField("FLOOR_NAME")
    private String floorName;

    /**
     * 面向人群
     */
    @TableField("FLOOR_USE")
    private String floorUse;

    /**
     * 楼苑编号（关联YL_BUILDING表）
     */
    @TableField("BUILDING_NO")
    private Integer buildingNo;

    /**
     * 楼层状态（1：正常 9：删除）
     */
    @TableField("FLOOR_STATE")
    private String floorState;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private String createTime;

    /**
     * 管理员编号
     */
    @TableField("TELLER_NO")
    private String tellerNo;

    @TableField(exist = false)
    private int roomCount;

    @TableField(exist = false)
    private int totalBed;

    @TableField(exist = false)
    private int emptyBed;

    public Integer getFloorNo() {
        return floorNo;
    }

    public void setFloorNo(Integer floorNo) {
        this.floorNo = floorNo;
    }

    public String getFloorName() {
        return floorName;
    }

    public void setFloorName(String floorName) {
        this.floorName = floorName;
    }

    public String getFloorUse() {
        return floorUse;
    }

    public void setFloorUse(String floorUse) {
        this.floorUse = floorUse;
    }

    public Integer getBuildingNo() {
        return buildingNo;
    }

    public void setBuildingNo(Integer buildingNo) {
        this.buildingNo = buildingNo;
    }

    public String getFloorState() {
        return floorState;
    }

    public void setFloorState(String floorState) {
        this.floorState = floorState;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }
    public String getTellerNo() {
        return tellerNo;
    }

    public void setTellerNo(String tellerNo) {
        this.tellerNo = tellerNo;
    }

    public int getRoomCount() {
        return roomCount;
    }

    public void setRoomCount(int roomCount) {
        this.roomCount = roomCount;
    }

    public int getTotalBed() {
        return totalBed;
    }

    public void setTotalBed(int totalBed) {
        this.totalBed = totalBed;
    }

    public int getEmptyBed() {
        return emptyBed;
    }

    public void setEmptyBed(int emptyBed) {
        this.emptyBed = emptyBed;
    }

    @Override
    protected Serializable pkVal() {
        return this.floorNo;
    }

    @Override
    public String toString() {
        return "YlFloor{" +
        "floorNo=" + floorNo +
        ", floor Name=" + floorName +
        ", floor Use=" + floorUse +
        ", buildubgNo=" + buildingNo +
        ", floor State=" + floorState +
        ", createTime=" + createTime +
        ", tellerNo=" + tellerNo +
        "}";
    }
}
